//
//  WBMainViewController.swift
//  WeiboSeven
//
//  Created by 王琼 on 16/11/23.
//  Copyright © 2016年 Joan. All rights reserved.
//

import UIKit

class WBMainViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.yellow
    }

    

}


// MARK: - 设置UI
extension WBMainViewController
{
    

    func setUI(){
        //创建主页控制器
        let homeViewController = WBHomeViewController()
        homeViewController.title = "首页"
        homeViewController.tabBarItem.image = UIImage(named:"tabbar_home")
        homeViewController.tabBarItem.selectedImage = UIImage(named:"tabbar_home_selected")
        //UINavigationController
        let homeNavgationController = UINavigationController(rootViewController: homeViewController)
        
        addChildViewController(homeNavgationController)
        
        
        
        
        
    }
    
    
}
